package com.huawei.hms.videoeditor.utils;

import android.Manifest;
import android.content.Intent;

import com.blankj.utilcode.util.PermissionUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.google.gson.Gson;
import com.huawei.hms.videoeditor.ui.template.bean.TemplateCacheData;
import com.huawei.hms.videoeditor.ui.template.module.activity.TemplateDetailActivity;

import java.util.ArrayList;
import java.util.List;

import androidx.annotation.NonNull;

/**
 * Author：daizhongbin on 2022/10/27
 * Email：1027154338@qq.com
 * Desc:
 */
public class MyPermissionHelper {

    public static void reqStoragePermission(PermissionUtils.SimpleCallback callback) {
        String[] permissions = new String[]{
                Manifest.permission.READ_EXTERNAL_STORAGE,
                Manifest.permission.WRITE_EXTERNAL_STORAGE
        };
        PermissionUtils.permission(permissions)
                .callback(callback)
                .request();
    }

}
